﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.DatabaseObject;
using SyndicateDAO.Classes;

namespace SyndicateDAO.DAO
{
    public class EventLogDAO : DataBaseHelper<eventLog>
    {
        public IQueryable<eventLog> SelectAllBySyndicateId(int sId)
        {
            return this.SelectAll().Where(c => c.syndicateId == sId);
        }
        public IQueryable<eventLog> SelectAllByUserId(int uId)
        {
            return this.SelectAll().Where(c => c.userId == uId);
        }

        public bool InsertEntry(eventLog l)
        {
            return this.Insert(l);
        }
        public bool UpdateEntry()
        {
            return this.Update();
        }
        public bool DeleteEntry(eventLog l)
        {
            return this.Delete(l);
        }
    }
}
